import request from '@/utils/request'
/**
 * 查询用户
 * @param data
 */
export function search(data) {
    return request({
        url: `/v2/admin/user/search.json`,
        method: 'get',
        params: data
    })
}
/**
 * 激活新用户(未激活用户)
 * @param data
 */
export function active(data) {
    return request({
        url: `/v2/admin/user/active.json`,
        method: 'post',
        params: data
    })
}
/**
 * 删除用户
 * @param data
 */
export function deleteUser(data) {
  return request({
    url: `v2/admin/user/delete.json`,
    method: 'post',
    params: data
  })
}
/**
 * 添加用户
 * @param data
 */
export function add(data) {
  return request({
    url: `v2/admin/user/add.json`,
    method: 'post',
    data
  })
}
